// eB5iX1RdaklqZ2ZAAHB1XiQbGkRRXlsfWV5UBk9zFlUMBAQABQkJCQkIV3cQBA==

   function i(e) {
            var t, a = (t = "",
            ["66", "72", "6f", "6d", "43", "68", "61", "72", "43", "6f", "64", "65"].forEach((function(e) {
                t += unescape("%u00" + e)
            }
            )),
            t);
            return String[a](e)
        }

       function oZ(e, t) {
            t || (t = s());
            for (var a = (e = e.split("")).length, n = t.length, o = "charCodeAt", r = 0; r < a; r++)
                e[r] = i(e[r][o](0) ^ t[(r + 10) % n][o](0));
            return e.join("")
        }

               function cv(e) {
            return function(e) {
                try {
                    return btoa(e)
                } catch (t) {
                    return Buffer.from(e).toString("base64")
                }
            }(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (function(e, t) {
                return i("0x" + t)
            }
            )))
        }

               function v(e, t, a) {
            var n, o, r = void 0 === a ? 2166136261 : a;
            for (n = 0,
            o = e.length; n < o; n++)
                r ^= e.charCodeAt(n),
                r += (r << 1) + (r << 4) + (r << 7) + (r << 8) + (r << 24);
            return t ? ("0000000" + (r >>> 0).toString(16)).substr(-16) : r >>> 0
        }

         var   l = v("qimai|Technologyx", 1);


function xialuo(params,url) {

        baseURL = 'https://api.qimai.cn';
        d = '@#';
        f = 1219;
        h = 'analysis';
      var a, o = +new Date - (f || 0) - 1515125653845, r = [];
                void 0 === params && (params = {}),
                Object.keys(params).forEach((function(t) {
                    if (t == h)
                        return !1;
                    params.hasOwnProperty(t) && r.push(params[t])
                }
                )),
                r = r.sort().join(""),
                r = (0,
                cv)(r),
                r += d + url.replace(baseURL, ""),
                r += d + o,
                r += d + 1,
                a = (0,
                cv)((0,
                oZ)(r, l))

               return a

}

var x = {brand: 'paid', device: 'ipad', country: 'cn', genre: '36'}
var url = '/rank/index';  // 查询路径
console.log(xialuo(x,url));


//  头部  URL   document.cookie   hook debug    json.parse

